package biz.ezcom.design.pattern.strategy;

/**
 * 打折策略：折扣
 */
public class StrategyRebate implements Strategy {
	private double rebate;//折扣率
	public StrategyRebate(double rebate) {
		this.rebate = rebate;
	}

	@Override
	public double getResult(double cash) {
		return cash * rebate;
	}

}
